<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title><%= htmlWebpackPlugin.options.title %></title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="manifest" href="manifest.json">
  <style>
    html {
      background-color: rgb(28, 31, 36);
    }

    .loading {
      text-align: center;
      position: absolute;
      width: 100vw;
      height: 100vh;
      top: 0;
      left: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .loading__logo svg {
      width: 200px;
      height: 200px;
    }

    .loading__text {
      font-family: sans-serif;
      color: white;
      font-size: 1.2em;
      padding-bottom: 2em;
    }
  </style>
  <script>
    /**
     *   地图服务api地址
     */
    let api_config = {
      "traffic_source": {
        "raster": {
          "tiles": ["http://114.215.68.185:8883/img/?t={z}-{x}-{y}"],
          "tileSize": "256",
          "type": "raster"
        },
        "vector": {
          "tiles": ["http://114.215.68.185:8883/amptraffic?t={z}-{x}-{y}"],
          "type": "vector"
        }
      },
      "url": "http://localhost:8000"
    };
    let layerDic = {
      "sourceLayer": {

      },
      "styleLayer": {

      }
    };

    let langDic = {

    }

    let spriteDic = [
      ['mapabcgd', 'mapabcgd-'],
      ['mapabcgd1', 'mapabcgd1-']
    ];
    let fontDic = [
      ['mapabcgd', 'mapabcgd-'],
      ['mapabcgd1', 'mapabcgd1-']
    ];

    let runConfig = {
      lang: 'en',
      styleLayerLang: 'en',
      sourceLayerLang: 'en'
    }
    runConfig = {
      lang: 'en', // 主界面显示语言
      styleLayerLang: 'zh', // 样式图层id翻译语言  en为原始id  zh翻译成中文图层名称
      sourceLayerLang: 'zh', //　数据源切图中的图层id en为显示原始id zh翻译成中文名称
      rumMode: 'customer', // 系统功能界面控制 customer 为用户部署  developer为开发样式部署 内部使用时部署
      addStyleLayerCommentToMsp: true,
      addSourceLayerToMsp: true,
      mainLayout: {
        toolBar : {
          show: true,
          toolBarTitle: 'MapEditor',
          toolBarVersion: 'v2.1.0',
          toolBarLogo: true,
          toolBarOpen : true,
          toolBarExport : true,
          toolBarExportSaveToFile : false,
          toolDataSource: false,
          toolDataSourcePublicSource: false,
          toolDataSourceSelectedSourceUrl: false,
          toolDataSourceAddNewSource: false,
          toolDataStyleSetting: false,
          toolDataStyleSettingFontUrl: false,
          toolDataStyleSettingSpriteUrl: false
        },
        layerList: {
          addLayer: false,
          deleteLayer: false,
          duplicateLayer: false
        },
        layerEditor: {
          layer: {
            show: true,
            layerId: false,
            layerSource: false,
            layerType: false,
            source:false,
            sourceLayer:false,
            comments:false
          },
          filter: {
            show: false, // 是否显示filter面板
            filter: false
          },
          jsonEditor: {
            show: false // 是否显示json editor面板
          }
        }
      }
    }
  </script>
</head>
<body>
  <!-- TODO: Import dynamically -->
  <!-- From <https://github.com/hail2u/color-blindness-emulation> -->
  <svg
    aria-hidden="true"
    xmlns="http://www.w3.org/2000/svg"
    version="1.1">
    <defs>
      <filter id="protanopia">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.567, 0.433, 0,     0, 0
                  0.558, 0.442, 0,     0, 0
                  0,     0.242, 0.758, 0, 0
                  0,     0,     0,     1, 0"/>
      </filter>
      <filter id="protanomaly">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.817, 0.183, 0,     0, 0
                  0.333, 0.667, 0,     0, 0
                  0,     0.125, 0.875, 0, 0
                  0,     0,     0,     1, 0"/>
      </filter>
      <filter id="deuteranopia">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.625, 0.375, 0,   0, 0
                  0.7,   0.3,   0,   0, 0
                  0,     0.3,   0.7, 0, 0
                  0,     0,     0,   1, 0"/>
      </filter>
      <filter id="deuteranomaly">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.8,   0.2,   0,     0, 0
                  0.258, 0.742, 0,     0, 0
                  0,     0.142, 0.858, 0, 0
                  0,     0,     0,     1, 0"/>
      </filter>
      <filter id="tritanopia">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.95, 0.05,  0,     0, 0
                  0,    0.433, 0.567, 0, 0
                  0,    0.475, 0.525, 0, 0
                  0,    0,     0,     1, 0"/>
      </filter>
      <filter id="tritanomaly">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.967, 0.033, 0,     0, 0
                  0,     0.733, 0.267, 0, 0
                  0,     0.183, 0.817, 0, 0
                  0,     0,     0,     1, 0"/>
      </filter>
      <filter id="achromatopsia">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.299, 0.587, 0.114, 0, 0
                  0.299, 0.587, 0.114, 0, 0
                  0.299, 0.587, 0.114, 0, 0
                  0,     0,     0,     1, 0"/>
      </filter>
      <filter id="achromatomaly">
        <feColorMatrix
          in="SourceGraphic"
          type="matrix"
          values="0.618, 0.320, 0.062, 0, 0
                  0.163, 0.775, 0.062, 0, 0
                  0.163, 0.320, 0.516, 0, 0
                  0,     0,     0,     1, 0"/>
      </filter>
    </defs>
  </svg>

  <div id="app"></div>
  <div class="loading">
    <div class="loading__logo">
      <!-- replaced by 'html-webpack-inline-svg-plugin' -->
      <img inline src="node_modules/maputnik-design/logos/logo-loading.svg" />
    </div>
    <div class="loading__text">正在加载&hellip;</div>
  </div>
</body>
</html>
